package com.apotik.legenda.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author Makhsus Bilmajdi
 */

@Entity
@Table(name="apt_unique_number")
public class TransactionUniqueNumber implements Serializable {
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name = "unique_number_id")
	private Long uniqueNumberId;
	
	@Column(name="trx_code", nullable = false)
	private String code;
	
	@Column(name="trx_number", nullable = false)
	private Integer number;
	
	@Column(name="trx_month", nullable = false)
	private Integer month;
	
	@Column(name="trx_year", nullable = false)
	private Integer year;
	
	
	public Long getUniqueNumberId() {
		return uniqueNumberId;
	}
	public void setUniqueNumberId(Long uniqueNumberId) {
		this.uniqueNumberId = uniqueNumberId;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public Integer getNumber() {
		return number;
	}
	public void setNumber(Integer number) {
		this.number = number;
	}
	public Integer getMonth() {
		return month;
	}
	public void setMonth(Integer month) {
		this.month = month;
	}
	public Integer getYear() {
		return year;
	}
	public void setYear(Integer year) {
		this.year = year;
	}
	
}
